import Router from 'vue-router';



const router = new Router({
    routes: [
      {
        path: '/',
        name: 'main',
        redirect: '/home',
        component: () => import('../views/Main.vue'),
        children: [
          {
            path: '/home',
            name: 'home',
            component: () => import('../views/Home.vue'),
          },
        ],
      },
      {
        path: '/about',
        name: 'about',
        component: () => import(/* webpackChunkName: "about" */ '../views/About.vue'),
      },
      {
        path: '/401',
        name: 'error_401',
        component: () => import('../views/error-page/401.vue'),
      },
      {
        path: '/500',
        name: 'error_500',
        component: () => import('../views/error-page/500.vue'),
      },
      {
        path: '*',
        name: 'error_404',
        component: () => import('../views/error-page/404.vue'),
      },
    ],
  });

export default router;
